<template>
	<view>
		<button @click="getUserInfo">获取头像和昵称</button>
	</view>
</template>

<script>
	import tabBarMixins from '../../mixins/tabBar-mixins.js'
	export default {
		mixins: [tabBarMixins],
		data() {
			return {
				
			};
		},
		methods: {
			getUserInfo() {
				uni.getUserProfile({
					desc: "测试",
					success: resp => {
						console.log(123)
						console.log(resp)
					},
					fail: error => {
						console.log(error)
					}
				})
			}
		}
	}
</script>

<style lang="scss">

</style>